"chess"
Index
Classes
Variables
Classes
Chessboard
constructor
Parameters
elem: HTMLElement
options: { orientation: black | white; position: start; sprite: { cache: boolean; size: number; url: string }; style: any }
orientation: black | white
position: start
sprite: { cache: boolean; size: number; url: string }
style: any
Returns Chessboard
props
Type declaration
animationDuration: number
enableMoveInput
Parameters
cb: (event) => void
turn: black | white
Returns void
setPosition
Parameters
fen: string
_: boolean
Returns void
MoveInputEvent
constructor
Returns MoveInputEvent
square
squareFrom
squareTo
type
Variables
constBORDER_TYPE
Type declaration
thin: thin
constCOLOR
Type declaration
black: black
white: white
constINPUT_EVENT_TYPE
Type declaration
moveDone: any
moveStart: any